import request from '@/utils/request'

// 查询体检项目列表
export function listPhysicalExamItems(query) {
  return request({
    url: '/medical/PhysicalExamItems/list',
    method: 'get',
    params: query
  })
}

// 查询体检项目详细
export function getPhysicalExamItems(id) {
  return request({
    url: '/medical/PhysicalExamItems/' + id,
    method: 'get'
  })
}

// 新增体检项目
export function addPhysicalExamItems(data) {
  return request({
    url: '/medical/PhysicalExamItems',
    method: 'post',
    data: data
  })
}

// 修改体检项目
export function updatePhysicalExamItems(data) {
  return request({
    url: '/medical/PhysicalExamItems',
    method: 'put',
    data: data
  })
}

// 删除体检项目
export function delPhysicalExamItems(id) {
  return request({
    url: '/medical/PhysicalExamItems/' + id,
    method: 'delete'
  })
}
